#!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@File    :   cmdb_service.py
@Time    :   2023-09-01 08:34:22
@Author  :   Li Rui
@Version :   1.0
@Contact :   marjey_lee@163.com
@Desc    :   None
"""

from modules.blk.cmdb.common.cmdb_api import CMDBAPI


class CMDBService:
    def __init__(self) -> None:
        self.cmdb_interface = CMDBAPI()

    def select(self, table_id):
        """select data from db

        Args:
            table_id (_type_): table id
        """
        return self.cmdb_interface.select_all(table_id)


def _main():
    data = CMDBService().select("zabbix_network_device")

    print(data)


if __name__ == "__main__":
    _main()
